<template>
  <!-- 会议培训详情页 -->
  <div id="meetingdetailBoshi" class="meetingdetailBoshi">
    <!--本来应该是导航，（方便全局替换）-->
    <!-- <HHeader></HHeader> -->
    <div class="mediadetailCont">
      <div class="mediadetailCont_crumbs">
        <span>
          <router-link :to="{name:'home'}">首页</router-link>
        </span>
        <i class="iconfont icon-youjiantou"></i>
        <span>
          <router-link :to="{name:'media'}">会议培训</router-link>
        </span>
        <i class="iconfont icon-youjiantou"></i>
        <span>正文</span>
      </div>
      <div class="mediadetailCont_cluster">
        <div class="mediadetailCont_cluster_Left">
          <div class="just_cluster_left_title">
            <span>{{this.mediadetailB.title}}</span>
            <div style="clear:both;"></div>
          </div>
          <div class="just_cluster_left_info">
            <span>作者：{{this.mediadetailB.author}}</span>
            <span>来源：{{this.mediadetailB.organization}}</span>
            <span>{{this.mediadetailB.CreatedTime}}</span>
            <span style="margin-left:45px;">阅读量：{{this.mediadetailB.readAmount}}</span>
          </div>
          <div class="just_cluster_left_cont">
            <p v-html="this.mediadetailB.content" ref="contList"></p>
          </div>
          <div id="player"></div>
        </div>
        <div class="mediadetailCont_cluster_Right">
          <JusTinTime></JusTinTime>
          <div class="just_cluster_righ_img">
            <img src="../../../../static/syimg/xxg_10.png" />
          </div>
        </div>
        <div style="clear:both"></div>
      </div>
    </div>
    
    
    
  </div>
</template>

<script>
// import router from "@/router/index";
//juqery
import axios from "axios";

export default {
  name: "meetingdetailBoshi",
  template: "<h3>{{ parentmsg }}</h3>",
  data() {
    return {
      Lmurl: "http://bjlm.bosihw.cn",
      meetingdetailBoshi: {
        title: "我国成功研制先进的高速高精度激光汤姆逊散射仪",
        date: "2019-12-5",
        issuer: "xxx杂志",
        read: "293"
      },
      mediadetailB: [],
      hash: "",
      ts: ""
    };
  },
  methods: {
    getData() {
      axios
        .post(
          "http://bjlm.bosihw.cn/api/Lm/GetMeetingtrain?id=" +
            this.$route.query.id
        )
        .then(res => {
          this.mediadetailB = res.data.Data;
          this.mediadetailB.Picture = this.Lmurl + this.mediadetailB.Picture;
          this.mediadetailB.CreatedTime = this.mediadetailB.CreatedTime.substr(
            0,
            10
          );
        })
        .catch(err => {
          console.log("请求失败：" + "err");
        });
      // this.$httphelper.post('http://bjlm.bosihw.cn/api/Lm/GetNewMedia?Id='+this.$route.query.id).then((res) => {
      //   this.mediadetailB = res.data.Data
      //   this.mediadetailB.CreatedTime = this.mediadetailB.CreatedTime.substr(0,10)
      // }).catch((e) => {
      //   console.log(e);
      // })
      // axios.get('http://bjlm.bosihw.cn/api/Lm/PlayVideo?vid='+this.$route.query.id).then((res) => {
      //   this.hash = res.data.Data.hash
      //   this.ts = res.data.Data.ts
      // }).catch((e) => {
      //   console.log(e);
      // })
    },
    getCreated() {
      // axios.get('http://bjlm.bosihw.cn/api/Lm/PlayVideo?vid='+this.$route.query.id).then((res) => {
      //   this.hash = res.data.Data.hash
      //   this.ts = res.data.Data.ts
      //   console.log(res);
      //   console.log(this.hash);
      //   console.log(this.ts);
      // }).catch((e) => {
      //   console.log(e);
      // })
    }
  },
  created() {
    // this.getData();
  },
  mounted() {
    this.getData();
    // var player = polyvPlayer({
    //   wrap: '#player',
    //   width: 800,
    //   height: 533,
    //   vid: this.$route.query.id,
    //   hash:this.hash,
    //   ts:this.ts
    // });
    // var player = polyvObject('#player').videoPlayer({
    //   width: 800,
    //   height: 533,
    //   vid: this.$route.query.id,
    //   hash:this.hash,
    //   ts:this.ts
    // });
  }
};
</script>

<style lang="less" scoped>
#player {
  margin-top: 20px;
  /deep/object {
    width: 100% !important;
  }
}
#meetingdetailBoshi {
  width: 100%;
  .mediadetailCont {
    width: 100%;
    height: 100%;
    display: inline-block;
    .mediadetailCont_crumbs {
      width: 1140px;
      height: 20px;
      margin: 0 auto;
      position: relative;
      margin-top: 28px;
      text-align: left;
      line-height: 20px;
      padding-left: 10px;
      span:nth-child(1) a,
      span:nth-child(3) a {
        color: #000000;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
      }
      i {
        color: #767c82;
        font-size: 18px;
        margin-left: 10px;
        font-weight: bold;
      }
      span:nth-child(5) {
        color: #003c80;
        font-size: 16px;
        margin-left: 10px;
        font-weight: bold;
        cursor: pointer;
      }
    }
    .mediadetailCont_cluster {
      width: 1140px;
      height: 100%;
      margin: 0 auto;
      margin-top: 28px;
      .mediadetailCont_cluster_Left {
        width: 856px;
        height: auto;
        position: relative;
        float: left;
        .just_cluster_left_title {
          width: 100%;
          height: 20px;
          line-height: 20px;
          span:nth-child(1) {
            float: left;
            font-size: 20px;
            color: #000;
            font-weight: bold;
            em {
              font-style: normal;
              float: right;
              color: #909090;
              font-size: 16px;
              position: absolute;
              right: 0;
            }
          }
          span:nth-child(2) {
            float: right;
            color: #909090;
            font-size: 16px;
          }
        }
        .just_cluster_left_info {
          margin-top: 18px;
          width: 100%;
          height: 18px;
          line-height: 18px;
          span {
            color: #909090;
            font-size: 16px;
          }
          span:nth-child(2) {
            margin-left: 45px;
          }
          span:nth-child(3) {
            margin-left: 45px;
          }
        }
        .just_cluster_left_cont {
          padding-top: 15px;
          overflow: hidden;
          overflow-y: auto;
          width: 100%;
          // height:1000px;
          margin-top: 21px;
          border-top: 1px solid #eeeeee;
          p {
            font-size: 16px;
            font-family: SourceHanSansSC-Regular;
            font-weight: 400;
            color: #777;
            line-height: 26px;
            margin-bottom: 20px;
            text-indent: 2em;
            text-align: justify;
            /deep/h1 {
              font-size: 20px !important;
              text-align: center;
              color: #777 !important;
              font-weight: 400 !important;
              width: 82%;
            }
            /deep/p {
              font-size: 16px;
              font-family: SourceHanSansSC-Regular;
              font-weight: 400;
              color: #777;
              line-height: 32px;
              text-align: left;
              // text-align:justify;
            }
          }
        }
      }
      .mediadetailCont_cluster_Right {
        width: 265px;
        float: right;
        border-left: 1px solid #eeeeee;
        position: relative;
        .just_cluster_righ_img {
          margin-left: 19px;
          margin-top: 28px;
          width: 250px;
          height: 163px;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
}
@media screen and (min-width: 1010px) {
  .mocreate {
    display: none;
  }
}
@media screen and (max-width: 1010px) {
  .mediadetailCont_crumbs {
    display: none;
  }
  // /deep/#meetingdetailBoshi .mediadetailCont .mediadetailCont_cluster .mediadetailCont_cluster_Left .just_cluster_left_cont p h1{
  //   width:100%!important;
  // }
  #player {
    width: 100% !important;
    /deep/object {
      width: 100% !important;
    }
  }
  /deep/h1 {
    width: 100% !important;
    position: relative;
    left: -31%;
  }
  .webcreate {
    display: none;
  }
  .mediadetailCont {
    margin-top: 70px;
  }
  /deep/.mediadetailCont_cluster {
    width: 94% !important;
    .mediadetailCont_cluster_Left {
      width: 100% !important;
      .just_cluster_left_title {
        height: 100% !important;
        line-height: 30px !important;
        text-align: justify;
      }
      .just_cluster_left_info {
        line-height: 40px !important;
        height: auto !important;
        span:nth-child(2) {
          margin-left: 23px !important;
        }
        span:nth-child(3) {
          margin-left: 32px;
        }
      }
      .just_cluster_left_cont {
        margin-top: 0px !important;
      }
    }
  }
  .mediadetailCont_cluster_Right {
    display: none;
  }
}
</style>
